package utils;

import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName ResponseUtil
 * @Author chenli
 * @Time 2018/11/16
 **/
public class ResponseUtil {

	private Integer returnCode;
	private String returnMsg;

	public static Map<String, Object> returnResp(Integer returnCode, String returnMsg) {
		Map<String, Object> resp = new HashMap<>();
		resp.put("status", returnCode);
		resp.put("message", returnMsg);
		return  resp;
	}

	public Integer getReturnCode() {
		return returnCode;
	}

	public void setReturnCode(Integer returnCode) {
		this.returnCode = returnCode;
	}

	public String getReturnMsg() {
		return returnMsg;
	}

	public void setReturnMsg(String returnMsg) {
		this.returnMsg = returnMsg;
	}
}
